import { _decorator, Component } from "cc";
import { SlotHolder } from "./SlotHolder";
const { ccclass, property } = _decorator;

@ccclass('ContainerUI')
export class ContainerUI extends Component {

    slotHolders: Array<SlotHolder>

    public RefreshUI(){
        for(let i = 0 ; i < this.slotHolders.length; i++){
            this.slotHolders[i].itemUI.index = i
            this.slotHolders[i].UpdateItem()
        }
    }
}